<?php

require_once 'smarty_lib/Smarty.class.php';
require_once 'lib/DBClass.php';
require_once 'lib/Account.php';
require_once 'lib/Halaman.php';

$smarty = new Smarty();
$acc = new Account();
$halaman = new Halaman();

$smarty->template_dir = 'template/';
$smarty->compile_dir = 'template_c/';

$data = $halaman->get_all_halaman();
$smarty->assign('page','artikel.html');
$smarty->assign('halaman', $data);

$smarty->display('index.html');

?>